package cn.edu.dlut.port.isp.repostitory.teach;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import cn.edu.dlut.port.isp.bean.teach.TideBean;


// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository
// CRUD refers Create, Read, Update, Delete

public interface TideRepository extends CrudRepository<TideBean, Long> {

	List<TideBean> findByCargoTypeId(int cargoTypeid);

	List<TideBean> findAllByOrderByCargoTypeId();
}
